package com.design.command;

/**
 * @ClassName ConcreteCommand1.java
 * @Description 命令角色具体类2
 * @author Jon
 * @date 2018年6月18日 上午11:54:53
 */
public class ConcreteCommand2 extends Command {
	/**
	 * 声明默认接收者 角色
	 */
	public ConcreteCommand2() {
		super(new ConcreteReceiver1());
	}
	public ConcreteCommand2(Receiver receiver) {
		super(receiver);
	}
	@Override
	public void execute() {
		super.receiver.doSomething();
	}
}
